from distutils.core import setup
import py2exe
import glob
import sys

sys.argv.append("py2exe")

setup(
    name='GMangas',
    version='1.0',
    scripts=['__init__.py', 'gmangas.py', 'BeautifulSoup.py', 'buttons.py',
             'combobox.py', 'image.py', 'menubar.py', 'statusbar.py',
             'utils.py', 'window.py', 'backend.py', 'errhandler.py'],
    windows=[
        {'script':'gmangas.py',
         'icon_resources': [(1, 'pixmaps\icon.ico')],}
        ],
    data_files=[
        ('', ['AUTHORS', 'LICENSE']), 
        ('glade', ['glade\gmangas.glade', 'glade\\backends_dialog.glade']), 
        ('pixmaps', ['pixmaps\cheff.png']),
        ('backends', ['backends\__init__.py', 'backends\itaSCAN.py',
                      'backends\OneManga.py']), 
        ('i18n\it\LC_MESSAGES', ['i18n\it\LC_MESSAGES\gmangas.mo']),
        ], 
    options = {
        "py2exe": {
            "includes": "cairo,pango,atk,gobject,pangocairo",
            "dll_excludes": [
                "iconv.dll","intl.dll","libatk-1.0-0.dll",
                "libgdk_pixbuf-2.0-0.dll","libgdk-win32-2.0-0.dll",
                "libglib-2.0-0.dll","libgmodule-2.0-0.dll",
                "libgobject-2.0-0.dll","libgthread-2.0-0.dll",
                "libgtk-win32-2.0-0.dll","libpango-1.0-0.dll",
                "libpangowin32-1.0-0.dll"],
            }
        }
)
